package com.xl.adminserver.v2.sdkclients;


import com.xl.adminserver.beans.RestApiResult;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

import java.util.Map;

/**
 * sdk调用
 */
public interface SdkClient {

    /**
     * 汽车桩启动
     * @param params
     * @return
     */
    @POST("/sdk/carStartCharge")
    Call<RestApiResult> carStartCharge(@Body Map<String, Object> params);

    /**
     * 汽车桩停止充电
     * @param params
     * @return
     */
    @POST("/sdk/carStopCharge")
    Call<RestApiResult> carStopCharge(@Body Map<String, Object> params);

    /**
     * 汽车费率设置
     * @param params
     * @return
     */
    @POST("/sdk/carSetRates")
    Call<RestApiResult> carSetRates(@Body Map<String, Object> params);

    /**
     * 升级充电桩
     * @param params
     * @return
     */
    @POST("/sdk/carUpdateCharge")
    Call<RestApiResult> carUpdateCharge(@Body Map<String, Object> params);

    /**
     * 单车桩启动
     * @param params
     * @return
     */
    @POST("/sdk/bikeStartCharge")
    Call<RestApiResult> bikeStartCharge(@Body  Map<String, Object> params);

    /**
     * 单车桩停止
     * @param params
     * @return
     */
    @POST("/sdk/bikeStopCharge")
    Call<RestApiResult> bikeStopCharge(@Body  Map<String, Object> params);

    /**
     * 单车桩调用命令
     * @param params
     * @return
     */
    Call<RestApiResult> bikeCallCharge(@Body Map<String, Object> params);

    /**
     * 批量下发费率
     * @param params
     * @return
     */
    Call<RestApiResult> bikeSetRate(@Body Map<String, Object> params);

    /**
     * 单车桩升级
     * @param params
     * @return
     */

    Call<RestApiResult> bikeUpdateCharge(@Body Map<String, Object> params);

    @POST("/test/postBodyTest")
    Call<RestApiResult> postBodyTest(@Body Map<String, Object> params);
}
